package com.wiki.gds.user.facade.sys.hystrix;

import com.wiki.gds.base.common.dto.ResponseDto;
import com.wiki.gds.base.common.exception.BizExceptionEnum;
import com.wiki.gds.base.common.utils.ResponseDtoFactory;
import com.wiki.gds.user.facade.sys.api.RoleApi;
import com.wiki.gds.user.facade.sys.api.UserApi;
import feign.hystrix.FallbackFactory;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


@Component
public class RoleApiFallbackFactory implements FallbackFactory<RoleApi> {

    public RoleApi create(Throwable throwable) {
        return new RoleApi() {
            @Override
            public List<Map> findUserRoleByUid(Long uid) {
                return null;
            }
        };
    }
}

